package com.itheima.Test3;

public class Demo1 {
    public static void main(String[] args) {
        Person p = getInstance();
        p.eat();
    }
    private static Person getInstance() {
        // 请补齐代码，使得编译通过，并在控制台输出(吃饭)

        return new Person();
    }
}
class Person {
    public void eat(){
        System.out.println("吃饭");
    }
}
